package com.touzi.mapper;

import com.touzi.beans.dbs.users.*;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> selectPage(int num);

    int countAll();

    int updateCousumedYesByDianhua(String dianhua);

    List<User> findUserByDianhua(String dianhua);

    List<User> findUserByDhmw(String ddmw);

    int regNew(NewUser newUser);

    User findUserByID(int id);

//查找用户的上级
    List<User> findUserByTuijian(int id);
//查找用户的下级
    List<User> findYijXiashuByID(int id);

    List<User> findErjXiashuByID(int id);

    List<User> findSanjXiashuByID(int id);

    List<User> findSijXiashuByID(int id);
    List<User> findWujXiashuByID(int id);
    List<User> findLiujXiashuByID(int id);
    List<User> findQijXiashuByID(int id);
    List<User> findBajXiashuByID(int id);
    List<User> findJiujXiashuByID(int id);
    List<User> findShijXiashuByID(int id);
    List<User> findShiYijXiashuByID(int id);
    List<User> findShiErjXiashuByID(int id);
    List<User> findShiSanjXiashuByID(int id);
    List<User> findShiSijXiashuByID(int id);
    List<User> findShiWujXiashuByID(int id);

    int updateUserByid(UserToUpdate userToUpdate);

    User findUserByPhonePasswd(Map<String, String> map);

    int jianKeyong(ChangeKeyong changeKeyong);

    int addKeyong(ChangeKeyong changeKeyong);

    int addKeyongByID(AddKeyByID addKeyByID);

    int xgMmZfbByDh(Map<String, String> xincs);
}
